<?php
/*
	创建会员
*/
defined('BY_JYA') or exit('error');
cfc('core')->checklogin();
$member=pdo_get('core_members',array('id'=>$_SESSION['uid']));
$data=array(
	'uniacid'=>$_SESSION['uniacid'],
	'mid'=>$_SESSION['uid'],
	'createtime'=>TIMESTAMP,
	'sex'=>$member['sex'],
	'type'=>1,
	'name'=>$member['nickname'],
	'avatar'=>$member['avatar'],
);
$this->insert('member',$data);
return $data;